<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<t:wrapper>
	<jsp:attribute name="title">
		<spring:message code="chapter.new.title" />
	</jsp:attribute>
	<jsp:body>
	<form method="post" action="">
		<label><spring:message code="course.manage.title" /></label>
		<input type="text" name="name" size="20">
		
		<label class="label100p"><spring:message code="chapter.new.content" /></label>
		<textarea name="content" style="width: 492px; height: 300px;"></textarea>
		
		<label></label>
		<label style="float: right;"><input class="radio" type="checkbox" name="demo" ${chapter.isDemo() ? "checked" : ""} /> <spring:message code="chapter.new.demo" /></label> 
		
		<label><spring:message code="chapter.new.course" /></label>
		<select name="course">
			<c:forEach items="${course}" var="course">
				<option value="${course.id}">${course.name}</option>
			</c:forEach>		
		</select>
		
		<label></label>
		<button type="submit"><spring:message code="course.manage.submit" /></button> 
	</form>
				
	</jsp:body>
</t:wrapper>